
if ((window.location.host.indexOf("127") > -1)||(window.location.host.indexOf("stage") > -1)){
  window.urlchange="//openapi.mls.weitutorstage.com/VmdOpenService";
}
else {
  window.urlchange="//openapi-mls.tutorabc.com.cn/VmdOpenService";
}

import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import './assets/css/global.css'
import './assets/css/form.css'

// import './assets/js/jquery.qrcode-logo.min.js'
// import './assets/js/InitWX_custom.js'


router.beforeEach(({ meta, path }, from, next) => {
	var { auth = true } = meta
	var isLogin = Boolean(store.state.user)

	if(auth && !isLogin && path !== '/login') {
		return next({ path: '/login' })
	}
	next()
})



var vm = new Vue({
	el: '#app',
	router,
	store,
	render: h => h(App)
});


